package com.prs.crm.action.ca.work;

import org.apache.struts2.convention.annotation.Action;
import org.courser.struts.BaseAction;
import org.courser.ui.PaginationSupport;
import org.hibernate.criterion.DetachedCriteria;

import com.prs.crm.domain.ca.work.TookParticular;
import com.prs.crm.service.ca.work.TookParticularService;
/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-4-16 10:36:04 领用明细
 */
public class TookParticularAction extends BaseAction {

	private static final long serialVersionUID = 1458955382785704427L;
	private TookParticular tookParticular;
	private PaginationSupport pagination;
	private TookParticularService tookParticularService;

	public TookParticular getTookParticular() {
		return tookParticular;
	}

	public void setTookParticular(TookParticular tookParticular) {
		this.tookParticular = tookParticular;
	}

	public PaginationSupport getPagination() {
		return pagination;
	}

	public void setPagination(PaginationSupport pagination) {
		this.pagination = pagination;
	}

	public TookParticularService getTookParticularService() {
		return tookParticularService;
	}

	public void setTookParticularService(TookParticularService tookParticularService) {
		this.tookParticularService = tookParticularService;
	}

//	@Action("listTookParticular")
//	public String listTookParticularAction() {
//		DetachedCriteria criteria =this.getPaginationHelper().createQuery(TookParticular.class);
//		pagination=this.getPaginationHelper().prepare(pagination);
//		this.setPagination(this.getTookParticularService().listByPage(criteria, pagination));
//		return SUCCESS;
//	}
}
